package org.qiandaosystem.qiandaosystemsource.repository;

import org.qiandaosystem.qiandaosystemsource.entity.Student;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface StudentRepository extends JpaRepository<Student, Integer> {
    @Query("SELECT s FROM Student s WHERE s.userId IN :ids")
    List<Student> findByIdIn(List<Integer> ids);
}